import request from '@/utils/request'

export function getUserChannelListApi () {
  return request({
    url: '/user/channels'
  })
}

export function getAllChannelListApi () {
  return request({
    url: '/channels'
  })
}

export function delUserChannelApi (id) {
  return request.delete('/user/channels/' + id)
}

export function addUserChannelApi (myChannels) {
  return request.put('user/channels', { channels: myChannels })
}
